<!DOCTYPE html>
<html>
<head>
    <title>diag Auto Refresh</title>
</head>
<body>
	<p> timestamp: <span id="timestamp"></span>.</p>
	<script>
		var timestamp = new Date().getTime();
		document.getElementById("timestamp").innerHTML = timestamp;
        setTimeout(function(){location.reload()},1000); //指定1秒刷新一次
	</script>
</body>
</html>